package com.qwe.graduation.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林卓锋
 * @since 2023-01-08
 */
@Getter
@Setter
  @ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("用户id")
        private String id;

      @ApiModelProperty("登录名")
      private String name;

      @ApiModelProperty("密码")
      private String password;

      @ApiModelProperty("用户名称")
      private String nickName;

      @ApiModelProperty("用户手机号码")
      private String userPhone;

      @ApiModelProperty("用户头像")
      private String avatar;

      @ApiModelProperty("用户邮箱")
      private String email;

      @JsonFormat( timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
      @ApiModelProperty("创建时间")
      private Date createTime;

      @JsonFormat( timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
      @ApiModelProperty("修改时间")
      private Date updateTime;

      private String permission;
}
